/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 主容器 */
.main-container {
    height: 100vh;
}

/* 头部样式 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
    height: 60px;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 8px;
    font-size: 24px;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu .el-button-group {
    margin-right: 10px;
}

.nav-menu .el-button {
    color: #fff;
    background-color: transparent;
    border: none;
    font-size: 16px;
    height: 50px;
    padding: 0 20px;
}

.nav-menu .el-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-menu .el-button.is-primary {
    background-color: #409EFF;
    font-weight: bold;
}

/* 主内容区域 */
.app-main {
    padding: 25px;
    background-color: #f0f2f5;
}

/* 卡片样式 */
.el-card {
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
}

/* Element Plus 菜单微调 */
.el-menu--horizontal {
    border-bottom: none !important;
}

.el-menu-item {
    font-size: 16px;
}

/* 工作范围部分样式 */
.el-collapse {
    border-top: none;
    border-bottom: none;
}

.el-collapse-item__header {
    font-size: 16px;
    font-weight: 600;
    background-color: #f5f7fa;
    color: #303133;
    height: 48px;
    line-height: 48px;
    padding: 0 15px;
}

.el-collapse-item__content {
    padding-bottom: 20px;
    padding-top: 10px;
}

.el-tag {
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.button-new-tag {
    margin-left: 10px;
    height: 32px;
    line-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}

.input-new-tag {
    width: 150px;
    margin-left: 10px;
    vertical-align: bottom;
}

.new-scope-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4e7ed;
    display: flex;
    justify-content: center;
}

/* 文件树样式 */
.custom-tree-node {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    padding-right: 8px;
    color: #303133;
}

.download-link {
    color: #409EFF;
    text-decoration: none;
    font-weight: 500;
    margin-left: 10px;
    display: none; /* 默认隐藏 */
}

.el-tree-node__content:hover .download-link {
    display: inline; /* 悬浮时显示 */
}

/* 全局加载动画 */
.el-loading-mask {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 系统配置页面 */
.new-scope-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4e7ed;
    display: flex;
    justify-content: center;
}

.input-new-tag {
    width: 150px;
    margin-left: 10px;
    vertical-align: middle;
}

.button-new-tag {
    margin-left: 10px;
    vertical-align: middle;
}

/* 工作范围与事件 */
.scope-collapse {
    margin-top: 20px;
}

.collapse-title {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    font-size: 16px;
}

.scope-actions {
    margin-left: auto;
    margin-right: 10px; /* 与箭头图标之间的距离 */
    display: flex;
    align-items: center;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    background-color: #f5f7fa;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-item:hover {
    background-color: #ecf5ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-text {
    font-size: 15px;
    line-height: 1.6;
    color: #303133;
    cursor: default;
}

.event-actions {
    opacity: 0.4;
    transition: opacity 0.3s;
}

.event-item:hover .event-actions {
    opacity: 1;
}

/* 工作范围编辑框样式 */
.collapse-title .el-input {
    width: calc(100% - 20px) !important;
    margin-right: 10px;
    flex: 1;
}

.collapse-title .el-input__inner {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 15px !important;
    font-weight: bold !important;
}

/* 事件编辑框样式 */
.event-edit-input {
    width: calc(100% - 110px) !important; /* 减去操作按钮的宽度 */
    margin-right: 10px;
    flex: 1;
}

.event-edit-input .el-input__inner {
    height: 36px !important;
    line-height: 36px !important;
    font-size: 15px !important;
}

.add-event-area {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* 按钮样式增强 */
.el-button {
    font-weight: 500;
}

.el-button--primary {
    background-color: #3a8ee6;
}

.el-button--success {
    background-color: #67c23a;
}

.el-button--danger {
    background-color: #f56c6c;
}

/* 表单样式 */
.el-form-item__label {
    font-size: 15px;
    font-weight: 500;
    color: #303133;
}

.el-input__inner {
    color: #303133;
    font-size: 15px;
}

/* 表格样式 */
.el-table {
    color: #303133;
    font-size: 15px;
}

.el-table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #303133;
}

/* 树形控件样式 */
.el-tree-node__label {
    font-size: 15px;
    color: #303133;
}

.el-tree-node__content:hover {
    background-color: #ecf5ff;
}

/* 保存和重置按钮样式 */
.card-header .el-button {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header .el-button .el-icon {
    margin-right: 5px;
}

/* 支持card-header中的按钮组 */
.card-header .el-button-group {
    display: flex;
    gap: 8px;
}

.el-button [class*="fa "]+span {
    margin-left: 8px;
}

/* 强制隐藏el-button内部自动生成的svg图标 */
.el-button .el-icon {
    display: none !important;
}

.el-date-table td.is-weekend .el-date-table-cell {
    color: #E47470;
    font-weight: bold;
}

/* 节假日样式 */
.el-date-table td.is-holiday .el-date-table-cell {
    background-color: #ffebee;
    color: #c62828;
    font-weight: bold;
    position: relative;
}

.el-date-table td.is-holiday .el-date-table-cell::after {
    content: '休';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #c62828;
    background-color: #ffcdd2;
    border-radius: 2px;
    padding: 0 2px;
    line-height: 1.2;
}

/* 调休工作日样式 */
.el-date-table td.is-adjustment-workday .el-date-table-cell {
    background-color: #e3f2fd;
    color: #1565c0;
    font-weight: bold;
    position: relative;
}

.el-date-table td.is-adjustment-workday .el-date-table-cell::after {
    content: '班';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #1565c0;
    background-color: #bbdefb;
    border-radius: 2px;
    padding: 0 2px;
    line-height: 1.2;
}

/* 页脚样式 */
.app-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.footer-content a {
    color: #3b82f6;
    text-decoration: none;
    margin-left: 5px;
}

.footer-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 模板参数说明样式 */
.parameter-mapping {
    padding: 10px 0;
}

.mapping-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 6px;
    border-left: 3px solid #409EFF;
}

.mapping-item strong {
    color: #303133;
    font-size: 14px;
}

.mapping-item code {
    background-color: #f1f2f6;
    color: #e74c3c;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    margin-left: 8px;
}

.param-desc {
    margin-top: 5px;
    color: #606266;
    font-size: 12px;
    line-height: 1.4;
} 